﻿using Che.AppService.AppService.AppFootball;
using Che.AppService.AppService.Login;
using Che.Domain.Entity.EventsBut;
using Microsoft.AspNetCore.Mvc;

namespace Che.WebApi.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class FootballController : Controller
    {
        private readonly AppIfootball appIfootball;
        private readonly ILogger<LoginController> _logger;
        public FootballController(AppIfootball iu, ILogger<LoginController> logger)
        {
            this.appIfootball = iu;
            _logger = logger;
        }
        [HttpGet("quest")]
        public Task<List<Footballquest>> footballquests()
        {
            return appIfootball.foootballquest();
        }
        [HttpGet("FootballQuest")]
        public Task<List<Domain.Entity.EventsBut.Footballquest>> footballsQU() { 
        
           return appIfootball.QustFottball();
        }
        [HttpPost("addfootball")]
        public Task<bool> add(Domain.Entity.EventsBut.Football football) { 
        
               return appIfootball.addFottball(football);
        }
    }
}
